package model;

import modelInterfaces.IResult;
import modelInterfaces.ISubject;
import pluginInterfaces.IMetric;

/**
 * Model class that contains the values ​​associated with the test results.
 * 
 * @author Andy Cullache
 */
public class Result implements IResult{

	/**
	 * Metric for evaluate.
	 */
	private IMetric metric;
	
	/**
	 * Result of metric evaluation.
	 */
	private double result;
	
	/**
	 * Subject from test set.
	 */
	private ISubject subject;
	
	/**
	 * Value of the independent variable (X axis). for now is the number of recommendations.
	 */
	private int variable;
	
	public IMetric getMetric() {
		return metric;
	}
	
	public void setMetric(IMetric metric) {
		this.metric = metric;
	}
	
	public double getResultAverage() {
		return result;
	}
	
	public void setResultAverage(double resultAverage) {
		this.result = resultAverage;
	}

	public ISubject getSubject() {
		return subject;
	}

	public void setSubject(ISubject subject) {
		this.subject = subject;
	}

	public int getVariable() {
		return variable;
	}

	public void setVariable(int variable) {
		this.variable = variable;
	}
}
